<table class="tblList">
	<tr>
		<th width="20">#</th>
		<th>Từ thay thế</th>
		<th width="70">Control</th>
	</tr>
	<?php
	foreach ($this->Items as $key => $val){
		$id				= $val['id'];
		$name 			= $val['name'];
		$status 		= $val['status'];
		if($status == 1){
			$linkStatus = 'javascript:void(0)';
			$status = $this->cmsIconButton('Kích vào để tắt', $this->imgUrl . '/admin/tick.png', $linkStatus, array('onclick' => 'statusFilter(0,'.$id.')', 'id' => 'status', 'data' => '0'));
		}else{
			$linkStatus = 'javascript:void(0)';
			$status = $this->cmsIconButton('Kích vào để bật', $this->imgUrl . '/admin/publish_x.png', $linkStatus, array('onclick' => 'statusFilter(1,'.$id.')', 'id' => 'status', 'data' => '1'));
		}
			
		$linkEdit		= 'javascript:void(0)';
		$btnEdit		= $this->cmsIconButton('Sửa', $this->imgUrl . '/admin/icon_edit.png', $linkEdit, array('onclick' => 'editFilter('.$id.')'));
			
		$linkDelete		= 'javascript:void(0)';
		$btnDelete		= $this->cmsIconButton('Xóa', $this->imgUrl . '/admin/publish_r.png', $linkDelete, array('onclick' => 'deleteFilter('.$id.')'));
			
		$strIconButton 	= $status . $btnEdit . $btnDelete;

		$name 	= '<a href="' . $linkEdit . '" onclick="editFilter('.$id.')">' . $name . '</a>';
			
		$classRow = 'row1';
		if($key % 2 == 0)
			$classRow = '';
	?>
	<tr class="<?php echo $classRow;?> danhsach_tukhoa">
		<td align="center"><?php echo $key + 1;?></td>
		<td align="left" id="tukhoa"><?php echo $name;?></td>
		<td align="center"><?php echo $strIconButton;?></td>
	</tr>
	<?php
	} 
	?>
</table>
<div class="tblButton">
	<a onclick="addFilter()" id="addFilter" href="javascript:void(0)" class="button goc5">Thêm mới</a>
</div>